package com.dongdongshop.service.imp;

import com.alibaba.dubbo.config.annotation.Service;
import com.dongdongshop.mapper.TbUserScoreUseMapper;
import com.dongdongshop.pojo.TbUserScoreUse;
import com.dongdongshop.service.ScoreUseService;

import javax.annotation.Resource;
import java.util.List;

@Service
@org.springframework.stereotype.Service
public class ScoreUseServiceImpl implements ScoreUseService {
    @Resource
    private TbUserScoreUseMapper tbUserScoreUseMapper;
    @Override
    public void addinfo(TbUserScoreUse scoreUse) {
        tbUserScoreUseMapper.insertSelective(scoreUse);
    }

    @Override
    public List<TbUserScoreUse> getByName(String username) {
        return tbUserScoreUseMapper.getByName(username);
    }

    @Override
    public void deleteAll(List<Integer> ilist) {
        tbUserScoreUseMapper.deleteAll(ilist);
    }

    @Override
    public void insertScore(TbUserScoreUse tbUserScoreUse) {
        tbUserScoreUseMapper.insertSelective(tbUserScoreUse);
    }
}
